
<form id="form_add"><input type="hidden" name="id" value="{[$result.emp]}" />
<table>
	<tr>
		<td align="right">员工：</td>
		<td><input type="text" name="emp" id="emp" size="16" value="{[$result.emp]}:{[$result.emp_t]}" title="{[$t.emp_|emp:'员工']}"> <input type="checkbox"
			name="t_emp" id="t_emp" value="{[$smarty.session.id]}:{[$smarty.session.name]}"> 自己</td>
		<td align="right">状态：</td>
		<td><select name='status'>
			{[html_options options=$status_option selected=$result.status]}
		</select></td>
	</tr>
	<tr>
		<td width="20%" align="right">硬件：</td>
		<td width="30%"><input type="text" name="mac" size="16" value="{[$result.mac]}"></td>
		<td width="20%" align="right">dhcp：</td>
		<td width="30%"><select name='dhcp'>
			{[html_options options=$dhcp_option selected=$result.dhcp]}
		</select></td>
	</tr>
	<tr>
		<td align="right">地址：</td>
		<td><input type="text" name="ip" id="ip" size="16" value="{[$result.ip]}"> <select name='internet'>
			{[html_options options=$internet_option selected=$result.internet]}
		</select></td>
		<td align="right">类型：</td>
		<td><select name='category'>
			{[html_options options=$category_option selected=$result.category]}
		</select></td>
	</tr>
	<tr>
		<td align="right">掩码：</td>
		<td><input type="text" name="netmask" size="16" value="{[$result.netmask]}"></td>
		<td align="right">上传：</td>
		<td><input type="text" name="upload" size="8" value="{[$result.upload]}">（单位：KB/秒）</td>		
	</tr>
	<tr>		
		<td align="right">网关：</td>
		<td><input type="text" name="gw" size="16" value="{[$result.gw]}"></td>
		<td align="right">下载：</td>
		<td><input type="text" name="download" size="8" value="{[$result.download]}">（单位：KB/秒）</td>		
	</tr>
	<tr>
		<td align="right">DNS：</td>
		<td colspan="3"><textarea rows="2" name="dns" cols="42">{[$result.dns]}</textarea></td>
	</tr>
	<tr>
		<td align="right">备注：</td>
		<td colspan="3"><textarea rows="3" name="content" cols="42">{[$result.content]}</textarea></td>
	</tr>	
</table>
</form>

<script type="text/javascript" src="js/emp/mac/add.js?r={[$smarty.now]}"></script>
